<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<s:if test='%{#session["user.username"] eq null}'>
    <script type="text/javascript">
        window.location = "./../login"
    </script>
</s:if>
<s:if test='%{#session["user.username"] eq ""}'>
    <script type="text/javascript">
        window.location = "./../login"
    </script>
</s:if>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        
        <title><tiles:insertAttribute name="title" /></title>   

        <link href="<s:url value="/css/style.css"/>" rel="stylesheet" type="text/css"/>
        <link href="<s:url value="/css/bootstrap.min.css"/>" rel="stylesheet" type="text/css"/>
        <link href="<s:url value="/css/bootstrap-responsive.min.css"/>" rel="stylesheet" type="text/css"/>

        <script src="<s:url value="/js/jquery-1.8.3.min.js"/>" type="text/javascript" ></script>
        <script src="<s:url value="/js/bootstrap.min.js"/>" type="text/javascript" ></script>    
    </head>
    <body>
        <tiles:insertAttribute name="topnav" />

        <div class="container" style="height: 485px;">
            <div class="row">
                <tiles:insertAttribute name="content" /> 
            </div>
        </div>
    <footer class="footer">
        <div class="container">
            <div class="row">
                <tiles:insertAttribute name="footer" />
            </div>
        </div>
    </footer>
</body>
</html>
